package com.sth.order.client;

import com.sth.commonutils.R;
import com.sth.commonutils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient("service-ucenter")
public interface Uncenter {
    // 统计分析 -> 某一天的注册人数
    @GetMapping("/educenter/member/countRegister/{day}")
    R countRegister(@PathVariable String day);

    // 根据用户id获取用户信息
    @PostMapping("/educenter/member/getUserInfoOrder/{id}")
    UcenterMemberOrder getUserInfoOrder(@PathVariable String id);
}
